package Exercises;

import java.util.Scanner;

public class Task18 {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = 0;
		
		while(true){
		System.out.println("Please add a number: ");
		
		n = sc.nextInt();
		if (n>27)
		{
			System.out.println("Please don't enter a number bigger then 27!");
		}else{
			break;
		}
				}
		int c = 0;
		
		for (int i = 0; i<=9; i++)
		{
			for (int j = 0; j<=9; j++)
			{
				for (int g = 0; g<=9;g++)
				{
					if (i+j+g>n)
					{
						c++;
					}
					
					
					
				}
			}
		}
		System.out.println(c + " number");
	}

}
